package com.mathlearning.auth.dto.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ConversationResponse {
    private Long id;
    private OtherUserInfo otherUser;
    private String lastMessage;
    private LocalDateTime lastMessageTime;
    private Long unreadCount;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class OtherUserInfo {
        private Long id;
        private String nickname;
        private String avatar;
    }
}








